#include "parafluidorientedobject.h"

using namespace ParaFluid;

OrientedObject::~OrientedObject()
{
	/* does nothing */
}

OrientedObject::OrientedObject()
	: Object()
	, orientation()
{
	/* does nothing */
}

OrientedObject::OrientedObject(const Vector & pos, const Orientation & orient)
	: Object(pos)
	, orientation(orient)
{
	/* does nothing */
}

OrientedObject::OrientedObject(const OrientedObject & other)
	: Object(other)
	, orientation(other.orientation)
{
	/* does nothing */
}

OrientedObject & OrientedObject::operator= (const OrientedObject & rhs)
{
	if(&rhs != this)
	{
		Object::operator=(rhs);
		orientation = rhs.orientation;
	}
	return *this;
}

bool OrientedObject::operator== (const OrientedObject & rhs) const
{
	bool result = true;
	if(&rhs != this)
	{
		result &= Object::operator==(rhs);
		result &= orientation == rhs.orientation;
	}
	return result;
}

